package com.hkrt.demo.di.module

import android.app.Application
import com.hkrt.demo.data.mapper.Mapper
import dagger.Module
import dagger.Provides
import javax.inject.Singleton

/**
* @author  Chenjinguang
* @date 29.07.2017.
*/
@Module
class ApplicationModule(private val application: Application) {

    @Singleton
    @Provides
    fun provideApplication(): Application = application

    @Singleton
    @Provides
    fun provideMapper(): Mapper = Mapper()
}